﻿@model IEnumerable<KRM.Core.KRMSP_GetProductReviews_Result>
<script>
    $(document).ready(function () {
        var height = $(window).height() - 255;
        $(".reviewscontent table.krmtable").attr("data-height", height);
    })
</script>
<table class="table table-bordered table-fix krmtable tbl-selected">
    <thead>
        <tr>
            <th>StoreName</th>
            <th>ProductName</th>
            <th>ReviewerName</th>
            <th>Review</th>
            <th>Rating</th>
            <th>DatePlace</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr onclick="productreviewselected('@item.reviewID','@item.reviewerName')">
                <td>@item.StoreName</td>
                <td>@item.ProductName</td>
                <td>@item.reviewerName</td>
                <td>@item.review</td>
                <td>@item.rating</td>
                <td>@item.datePlaced</td>
            </tr>
        }
    </tbody>
</table>
